package cloud.xlh.dynamic_env_refresh_server.event;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : xlh_osms
 * @ Author: XuLeHuang
 * @ Date: 2023/3/15 16:39
 * @ Description:
 */
public class LocalDataChangeEvent extends Event {
    //模块名称
    public final String groupKey;

    public final boolean isBeta;

    public final List<String> betaIps;

    public final String tag;

    public List<String> configFileNameList;

    public LocalDataChangeEvent(String groupKey , List<String> configFileNameList) {
        this.groupKey = groupKey;
        this.isBeta = false;
        this.betaIps = null;
        this.tag = null;
        this.configFileNameList = configFileNameList;
    }

    public LocalDataChangeEvent(String groupKey, boolean isBeta, List<String> betaIps , List<String> configFileNameList) {
        this.groupKey = groupKey;
        this.isBeta = isBeta;
        this.betaIps = betaIps;
        this.tag = null;
        this.configFileNameList = configFileNameList;
    }

    public LocalDataChangeEvent(String groupKey, boolean isBeta, List<String> betaIps, String tag , List<String> configFileNameList) {
        this.groupKey = groupKey;
        this.isBeta = isBeta;
        this.betaIps = betaIps;
        this.tag = tag;
        this.configFileNameList = configFileNameList;
    }
}
